#include "test_exceptions.h"
#include "test.h"
#include <sstream>

#pragma warning(disable : 4996)

using namespace krryn::test;

const char *duplicate_exception::what() const throw(){
	std::stringstream ss;

	ss << "Error: duplicate test suites encountered" << std::endl;

	for(duplicate_list_t::const_iterator i = m_Duplicates.begin(); i != m_Duplicates.end(); i++){
		ss << " - " << (*i)->get_name() << std::endl;
	}

	return strdup(ss.str().c_str());
}